import request from '@/utils/request'

// 查询dataRoom附件权限详细
export function getFileDataRoomPermission(id) {
  return request({
    url: '/file/fileDataRoomPermission/' + id,
    method: 'get'
  })
}

// 查询dataRoom附件权限详细 根据附件ID
export function getPermissionByFileId(fileId) {
  return request({
    url: '/file/fileDataRoomPermission/getPermissionByFileId/' + fileId,
    method: 'get'
  })
}

// 保存dataRoom附件权限
export function saveFileDataRoomPermission(data) {
  return request({
    url: '/file/fileDataRoomPermission/save',
    method: 'post',
    data: data
  })
}

// 删除
export function delFileDataRoomPermission(id) {
  return request({
    url: '/file/fileDataRoomPermission/' + id,
    method: 'delete'
  })
}

export function getEmailInfo(data) {
  return request({
    url: '/file/fileDataRoomPermission/getEmailInfo',
    method: 'post',
    data: data
  })
}

export function getEmailInfoBulk(data) {
  return request({
    url: '/file/fileDataRoomPermission/getEmailInfoBulk',
    method: 'post',
    data: data
  })
}
